<?php
  session_start();
  if(!isset($_SESSION['login'])){
        header('Location: ../../index.php');    
    }
?>
<img id="background" src="../../images/background.jpg" >

<link type="text/css" rel="stylesheet" href="../../css/general_global.css" />
<?php
  include_once("../../template/fadeshow1.php");
  include_once("../../usertemplate/usernavigation1.php"); 
?>
<div id="com">
<table>
    
    <tr>
        <form action="../../account/status/post_status.php" method="POST">
    </tr>
    <tr>
        <td><textarea rows="5" cols="50" name="poststatus" placeholder="Post you status here..."></textarea></td>
    </tr>
    </tr>
        <td><input type="hidden" value="<?php echo $_SESSION['user_id']; ?>" name="my_id" ></td>
    <tr>
    <tr>
        <td><input type="submit" value="Post"><hr><td>
    </tr>
    <tr>
        </form>
    </tr>
    <?php
                require_once("../../classes/getstatus.php");   
                $status = new User;
                $ctr = 0;
                $post_status = $status->getpostStatus();
                if($post_status != 0){
                    for($x=0;$x<count($post_status);$x++){
                        echo "<tr><td>".$post_status[$x]['fname'].' '.$post_status[$x]['lname']." :</td></tr>";
                        echo "<tr><td>".$post_status[$x]['status']."<br><hr></td></tr>";
                        $ctr+=1;
                    }
                }
    ?>
</table>

</div>
 <div id="footer1">
		<div class="alltextcenter"> RF Online is a Trademark of Level Up Inc under license to Harold Company Inc &copy;. All Rights Reserved 2012</div>
		
	</div>
